home *** CD-ROM | disk | FTP | other *** search
/ MacAddict 21 / MacAddict_021_1998_05.iso / Software / Apple / Mac OS Runtime for Java / About MRJ 2.0 next >
Text File  |  1997-12-16  |  13KB  |  166 lines

  1.  About Mac OS™ Runtime for Java™
  2. Version 2.0
  3.  
  4.  
  5. Introduction
  6. Mac OS Runtime for Java (MRJ) 2.0 is a software package that includes Apple’s implementation of the Java Virtual Machine (VM) and related libraries. It is based on software created by the JavaSoft business unit of Sun Microsystems, Inc. and implements version 1.1.3 of Sun’s Java specification.
  7.  
  8. With MRJ installed, you are able to run Java applets within the Microsoft Internet Explorer web browser or the Apple Applet Runner, both of which are included with Mac OS 8.1.
  9.  
  10. Microsoft Internet Explorer
  11. The most convenient way to locate Java applets on the World Wide Web and to run them is to use a web browser such as Microsoft Internet Explorer. To configure Internet Explorer to use MRJ so that you can run Java applets, first use the Preferences command in the Internet Explorer Edit menu to bring up the Internet Explorer Preferences dialog. Click the triangle next to “Web Browser” in the box on the left side of the dialog to show its subcategories. Then click the “Java” subcategory to see the Java Options pane on the right side of the dialog:
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40. Check the “Enable Java” box so you will be able to run Java applets; then use the “Java virtual machine” popup menu to select “Apple MRJ”. To confirm the selections, click OK to dismiss the dialog. You must then quit Internet Explorer and run it again for the new selections to take effect.
  41.  
  42. Apple Applet Runner
  43. You can also use Apple Applet Runner to run Java applets. It is located in the “Mac OS Runtime for Java” folder in the “Apple Extras” folder of your startup disk.
  44.  
  45. Each Java applet on the Internet has a unique URL (Uniform Resource Locator), or address, that the Apple Applet Runner uses to locate it. If you know the URL of an applet you want to run, use the “Open URL” command (in the File Menu) to add it to a list of saved URLs, choose the new applet from the list, then click the Open button to run it. 
  46.  
  47. You can also run an applet that is stored on your local hard disk. To do this, use the “Open Local HTML File” command (in the File menu) to select the HTML (Hypertext Markup Language) file used to identify and run the applet. This file, whose name usually has a “.html” suffix, is most often located inside the folder on your hard disk where the applet is stored. You can also drag and drop an applet’s HTML file onto the Apple Applet Runner icon in the Finder.
  48.  
  49. Note: If you run applets using the Apple Applet Runner you will see only the applet window itself. If you run the applet inside a Java-enabled web browser like Internet Explorer, you will usually see other information displayed on your web page around the portion used to show the applet. This information comes from the same HTML file used to run the applet, but is intended for use only by browsers and is ignored by Apple Applet Runner.
  50.  
  51. Several demonstration applets can be run from the Applets menu in Apple Applet Runner even if you do not have an active Internet connection. These applets are stored locally in the Applets folder inside the “Mac OS Runtime for Java” folder in the “Apple Extras” folder. Note that these demonstration applets were created by Sun Microsystems, Inc., not by Apple Computer, Inc., and may not follow Apple’s guidelines for user interaction.
  52.  
  53. Where to Find Applets to Run
  54. There are thousands of applets available on the Internet, most of them for no charge. Three good starting points for finding applets are:
  55.  
  56. • <http://www.gamelan.com/>
  57. • <http://www.jars.com/>
  58. • <http://trp.research.apple.com/>
  59.  
  60. System requirements
  61. MRJ 2.0 works on PowerPC and 68040 computers running Mac OS 8.0 or later. At least 8 MB of free RAM is recommended and at least 30 MB of free disk space is required to run MRJ. The amount of RAM needed depends on the applets being run; larger applets will need more than 8MB of RAM. If you are running MRJ in a Web browser, you’ll need at least 8MB of free RAM after the browser has launched. To see how much RAM you have available, choose “About this Computer” from the Apple menu in the Finder. See the Memory Usage section below for more information.
  62.  
  63. To run Java applets over the Internet you must have an active Internet connection.
  64.  
  65. Note: MRJ 2.0 may be installed on System 7.6.1 by doing a Custom Install and choosing the software components appropriate for that System.
  66.  
  67. What’s Installed with MRJ?
  68. The MRJ 2.0 installer places the following software components on your hard disk:
  69.  
  70. On all computers:
  71. • “Mac OS Runtime for Java” folder in the Apple Extras folder at the top level of the startup drive; this folder holds the Apple Applet Runner and many demonstration applets.
  72. • “MRJ Libraries” folder in the Extensions folder of the active System Folder
  73. • “Text Encoding Converter” file in the Extensions folder of the active System Folder (if needed)
  74. • “Text Encodings” folder in the active System Folder (if needed)
  75.  
  76. On 68040 computers only:
  77. • “CFM-68K Runtime Enabler” file in the Extensions folder of the active System Folder (if needed)
  78.  
  79. When you run the Apple Applet Runner, a preferences file named “Apple Applet Runner Prefs” is saved in the Preferences folder of the active System Folder.
  80.  
  81. What’s New in MRJ 2.0?
  82. MRJ 2.0 supports Sun’s Java version 1.1.3 specification, which has added or improved support in the following areas:
  83.  
  84.  • Internationalization 
  85.  • Security and Signed Applets 
  86.  • AWT Enhancements 
  87.  • JavaBeans™ 
  88.  • JAR File Format 
  89.  • Networking Enhancements 
  90.  • I/O Enhancements 
  91.  • Math Package 
  92.  • Remote Method Invocation 
  93.  • Object Serialization 
  94.  • Reflection 
  95.  • JDBC™ - Connecting Java and Databases 
  96.  • Inner Classes 
  97.  • Java Native Interface 
  98.  • Performance Enhancements
  99.  • The demonstration applets have been updated and/or replaced with new examples
  100.  
  101. For detailed technical information on these new features, visit Sun’s web site at
  102. <http://java.sun.com/products/jdk/1.1/docs/>.
  103.  
  104. MRJ 2.0 also contains a just-in-time compiler (JITC) for both PowerPC and 68040 Macintoshes that greatly enhances the speed of many operations in Java.
  105.  
  106. MRJ Software Development Kit
  107. If you are a software developer and you want to learn more about programming with Java on a Macintosh, visit our web site at <http://applejava.apple.com/> for information on how to obtain a software development kit (SDK) to facilitate your development efforts using MRJ. The MRJ SDK includes utilities and documentation that allow software developers to:
  108.  
  109. • run Java applets and applications within a Macintosh application
  110. • access the Java runtime from a Macintosh application
  111. • call Java methods from C and C++
  112. • call native methods from Java
  113. • build standalone Java applications
  114.  
  115. Troubleshooting
  116.  
  117. Memory Usage
  118. If there is not enough random-access memory (RAM) in your computer, you may have trouble running Java applets or applications. If you see an error message that contains one of terms below, the problem might be that you do not have enough memory to run:
  119.  
  120. • OutOfMemoryError
  121. • OutOfMemoryException
  122. • java.lang.NoClassDefFoundError
  123. • java.lang.NullPointerException
  124.  
  125. Note: These error messages may happen for reasons other than low memory. You might try running the applet or application on another computer to see if the same error messages occur there.
  126.  
  127. MRJ uses system memory to run Java applets and applications. Applications allocate their own application memory, leaving less memory available to the rest of the system. If an application that uses MRJ (such as Apple Applet Runner or Internet Explorer) is using an especially large amount of memory, you may have trouble running large Java applets or applications. 
  128.  
  129. To make more memory available try quitting applications that you aren’t using. If you still cannot run the applet or application, try reducing the amount of memory used by the application that is using MRJ; this will free up more system memory for MRJ to use. To reduce an application’s memory size, first quit the application, then select the application’s icon and choose Get Info from the Finder’s File menu. Enter a smaller number in the Preferred Size field, but do not set the preferred size smaller than the indicated minimum size.
  130.  
  131. You may also wish to turn on Virtual Memory to allow applications to use some of your disk space as if it were RAM. This allows you to run more memory-intensive programs, but your computer may run more slowly as a result. You can turn Virtual Memory on with the Memory control panel.
  132.  
  133. Known Problems
  134. • MRJ may display error messages, fail to load images or fail to play sounds if there is not enough memory available to run, as described in the Memory Usage section above. In rare cases, MRJ may crash or hang if it cannot get enough memory to run. Try the techniques described in the Memory Usage section if you are having trouble running MRJ.
  135.  
  136. • Microsoft Internet Explorer may fail to load or run applets if there is not enough memory available to run. Try the techniques described in the Memory Usage section if you are having trouble running applets in Internet Explorer.
  137.  
  138. • Some applets may cause MRJ to hang. If your browser or Apple Applet Runner appears to be frozen, wait a few minutes to see if the problem corrects itself. If the problem continues, try force-quitting the application by typing -option-escape and choosing “Force Quit” when the dialog appears. If the problem reproduces every time you visit a particular applet, please send email describing the problem to the bug-reporting address listed at our Web site, <http://applejava.apple.com/>.
  139.  
  140. • Some Java applets (such as the Clock example) or applications that are processor intensive may cause other applets to open or run slowly, or may cause them not to open at all. To improve performance, try closing applets or applications that you are not using.
  141.  
  142. • Marimba’s Castanet Tuner 1.0 (distributed with Mac OS 8.0) is only compatible with MRJ 1.0.2 (also provided with Mac OS 8.0) and MRJ 1.5.1. It does not work with MRJ 2.0. Contact Marimba for information on how to upgrade to a newer version that does work with MRJ 2.0. Marimba’s web address is <http://www.marimba.com/>.
  143.  
  144. • MRJ may fail to run or give an error message saying that it can’t find required Java Classes if an empty folder has been created or placed in the MRJClasses folder (located in the MRJ Libraries folder, which is in the Extensions folder of the active System Folder).
  145.  
  146. • If you have an extension called PPCExceptionEnabler in the Extensions folder of your active System Folder you must remove it and restart before running MRJ. This extension was installed by early versions of Macintosh Common Lisp (MCL); the latest version of MCL does not require this extension. If you have MCL 3.9 or earlier, upgrade to version 4.0 or later.
  147.  
  148. • Serialized objects created by MRJ are currently created as type 'TEXT'. Many utilities for transferring files from Mac OS systems to other systems (such as PC Exchange or Fetch) may automatically manipulate text files, effectively corrupting the serialized object. To avoid this problem, you must make sure that the objects are transferred as raw or binary data, rather than being interpreted as a text file. Most transfer utilities provide a method for specifying how the data is transferred.
  149.  
  150. • If you have Personal Web Sharing on and are trying to share applets, you may see a problem if the applet’s class files contain a “$”. Personal Web sharing incorrectly interprets the “$”, resulting in the applet failing to run. The applet will work correctly if its class files are packaged in .zip or .jar format.
  151.  
  152. • JDK 1.1.3 performs more complete bytecode verification than earlier versions of Java. If you see an error of the form “java.lang.ClassFormatError: Arguments can't fit into locals...” you may need to obtain a newer version of the applet or application.
  153.  
  154. Further Information
  155. Visit our Web site at <http://applejava.apple.com/> to find out about future releases of MRJ, fixes to problems, and other related news and information.
  156.  
  157.  
  158. Java not Fault-tolerant
  159. The Java technology is not fault-tolerant and is not designed, manufactured or intended for use or resale as on-line control equipment in the operation of nuclear facilities, aircraft navigation or communication systems, or air traffic control machines in which the failure of the Java technology or Mac OS Runtime for Java could lead directly to death, personal injury, or severe physical or environmental damage.
  160.  
  161. © 1995-1997 Apple Computer, Inc. All rights reserved. 
  162. Apple, the Apple logo, and Mac are trademarks of Apple Computer, Inc., registered in the U.S. and other countries. PowerPC is a trademark of International Business Machines Corporation, used under license therefrom. Java and all Java-based trademarks and logos are either trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries. Microsoft and Internet Explorer are either trademarks or registered trademarks of Microsoft Corporation, in the U.S. and/or other countries. All other product and company names may be trademarks or registered trademarks of their respective owners. Mention of non-Apple products is for information purposes and constitutes neither an endorsement nor a recommendation. Apple assumes no responsibility with regard to the selection, performance, or use of these products.
  163.  
  164. Updated December 16, 1997
  165.  
  166. 239